//-----------------------------------------------------------------------------
//
// CodeXS - Copyright(c) Businessware Architects cc
// Contact: Willem J Fourie
// E-mail : willemf@bware.biz
//
// This file is part of CodeXS.
//
// CodeXS is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License (GPL) as 
// published by the Free Software Foundation version 2 of the License.
//
// CodeXS is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with CodeXS; if not, write to:
//
// Free Software Foundation, Inc.
// 59 Temple Place
// Suite 330
// Boston
// MA  02111-1307  USA
//
//-----------------------------------------------------------------------------

using System;
using System.Reflection;

namespace CodeXS.Schema
{
	public class Defaults
	{
		static public string DocumentationFileName
		{
			get { return "documentation.xml"; }
		}
		static public string DocumentationTag
		{
			get { return "/documentation/"; }
		}
		static public string BlockTag
		{
			get { return "/block"; }
		}
		static public string ClassTag
		{
			get { return "class"; }
		}
		static public string EnumTag
		{
			get { return "enum"; }
		}
		static public string ModifierName(object Obj)
		{
			string[] name = Schema.Information.DefaultName(Obj);
			return name[0] + "." + name[1];
		}
		static public string ModifierAssembly(object Obj, bool FullPath)
		{
			if(Obj != null)
			{
				AssemblyName asmName = Obj.GetType().Assembly.GetName();
				if(FullPath) return asmName.CodeBase;
				return asmName.Name;
			}
			return null;
		}
	}
}
